import axios from 'axios'
import Qs from 'qs'

let Axios = axios.create({
  baseURL: appConfig.rbUrl,
  transformRequest: [function (data) {
    return Qs.stringify({
      ...data
    })
  }]
});

export default {
  install(Vue) {
    Object.defineProperty(Vue.prototype,'$http',{
      value: Axios
    })
  }
}
